// const angular = require('angular');
// var app = angular.module('ita-app');

// app.run(['$rootScope', '$transitions', function ($rootScope, $transitions) {
//     $transitions.onStart({ to: 'merchant.**' }, function (trans) {
//         var $state = trans.router.stateService;
//         if (!$rootScope.merchant) {
//             $state.transitionTo('audit');
//         }
//     })

// }]);